import java.util.ArrayList;
/**
 * The Journal class.
 * 
 * @author (Jens Brobak) 
 * @version (1.0)
 */
public class Journal
{
    private String title;
    private String publisher;
    private int volume;
    private String year;
    private ArrayList<String> circulationList;
    private String empName;

    public Journal(String title, String publisher, int volume, String year)
    {
        this.title = title;
        this.publisher = publisher;
        this.volume = volume;
        this.year = year;
        this.circulationList = new ArrayList<String>();
        this.empName = empName;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public void setPublisher(String publisher)
    {
        this.publisher = publisher;
    }

    public void setVolume(int voulume)
    {
        this.volume = volume;
    }

    public void setYear(String year)
    {
        this.year = year;
    }

    public String getTitle()
    {
        return title;
    }

    public String getPublisher()
    {
        return publisher;
    }

    public int getVolume()
    {
        return volume;
    }

    public String getYear()
    {
        return year;
    }
   
    public void addEmployee(String empName)
    {
        if (circulationList.contains(empName)) {
        System.out.println("User does already exist! - Please try with another name.");
    }
        circulationList.add(empName);
    }

    public void showEmployees()
    {
        int index = 0;
        for (String circulationlist : circulationList)
        System.out.println(circulationList.get(index++));
    }
    
    public void removeEmployee(String empName)
    {
    circulationList.remove(empName);
    }
}